package com.star.platforms.model;

import java.util.Date;

public class Article {
    private Integer id;

    private String title;

    private String avator;

    private String content;

    private String author;

    private Date publishDate;

    private Integer readCount;

    private Integer likeCount;

    private String linkUrl;

    private Integer type;

    private Integer recommend;

    public Article(Integer id, String title, String avator, String content, String author, Date publishDate, Integer readCount, Integer likeCount, String linkUrl, Integer type, Integer recommend) {
        this.id = id;
        this.title = title;
        this.avator = avator;
        this.content = content;
        this.author = author;
        this.publishDate = publishDate;
        this.readCount = readCount;
        this.likeCount = likeCount;
        this.linkUrl = linkUrl;
        this.type = type;
        this.recommend = recommend;
    }

    public Article() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getAvator() {
        return avator;
    }

    public void setAvator(String avator) {
        this.avator = avator == null ? null : avator.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author == null ? null : author.trim();
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public Integer getReadCount() {
        return readCount;
    }

    public void setReadCount(Integer readCount) {
        this.readCount = readCount;
    }

    public Integer getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl == null ? null : linkUrl.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getRecommend() {
        return recommend;
    }

    public void setRecommend(Integer recommend) {
        this.recommend = recommend;
    }
}